package com.strive.user.service;

import com.strive.common.model.base.PageResult;
import com.strive.common.model.dto.SysPower;
import com.strive.common.model.dto.SysUser;
import com.strive.user.model.SysPowerRolesVo;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: bingcun.chen
 * @Date: 2022/6/14 11:09
 * @Version 1.0
 */
public interface ISysPowerService {

    boolean insertPowers(List<SysPower> sysPower);

    /**
     * 给角色设置权限
     * @param sysPowerRolesVo
     */
    Boolean setPowersByRoleId(SysPowerRolesVo sysPowerRolesVo);

    /**
     * 权限查询
     * @param params
     * @return
     */
    PageResult<SysPower> getPowerDataByMenuId(Map<String, Object> params);

    /**
     * 添加或更新权限
     * @param sysPower
     */
    void saveOrUpdateRole(SysPower sysPower) throws Exception;

    /**
     * 删除角色
     * @param id
     */
    void deletePower(Long id);
}
